<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SqlConsole.aspx.cs" Inherits="MOM.DB.SqlConsole" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>    
	<title>Shares</title>
	<style type="text/css">
		@import url(../Css/Mom.css);
		@import url(../Css/themes/green.css);
		body
		{
			width: auto;
			height: auto;
			padding: 10px;
		}
		.Error
		{
			display: block;		
			padding: 10px;
			background-color: #990000;
			color: #FFFFFF;
			font-weight: bold;
			margin-bottom: 10px;			
		}
		.Success
		{
			display: block;
			padding: 10px;
			background-color: #009900;
			color: #FFFFFF;
			font-weight: bold;
			margin-bottom: 10px;						
		}
	</style>
</head>
<body>
    <form id="form1" runat="server">
    <h1>SQL Console</h1>
	
	<div class="DropShadow" style="width:635px;">
		<div class="Box">
			<div class="P10">
				Run sql execute-statements on the database. <b>Warning</b>, modfying the datbase incorrectly may corrupt the database permenantly!<br />
				<br />
				
				<asp:Label ID="lblError" runat="server"></asp:Label>				
				
				<asp:TextBox ID="txtSQL" Rows="15" TextMode="MultiLine" Width="100%" Wrap="true" runat="server"></asp:TextBox><br />
				<asp:Button ID="btnSQL" Text="Execute" OnClientClick="return confirm('Are you sure?');" OnClick="SQL_Click" runat="server" />				
			</div>
		</div>
	</div>	
    </form>
</body></html>